package com.example.mq.common;


import java.util.Arrays;

/**
 * 响应
 */
public class Response {
    private int type;
    private int length;
    private byte[] payload;


    @Override
    public String toString() {
        return "Response{" +
                "type=" + type +
                ", length=" + length +
                '}';
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getLength() {
        return length;
    }

    public void setLength(int length) {
        this.length = length;
    }

    public byte[] getPayload() {
        return payload;
    }

    public void setPayload(byte[] payload) {
        this.payload = payload;
    }
}
